#ifndef AIRCONDITION_DIALOG_H
#define AIRCONDITION_DIALOG_H

#include <QDialog>

namespace Ui {
class Aircondition_Dialog;
}

class Aircondition_Dialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit Aircondition_Dialog(QWidget *parent = nullptr);
    ~Aircondition_Dialog();
    
private slots:
    void toggleMode();
    void toggleFanSpeed();
    void increaseTemp();
    void decreaseTemp();
    void updateModeColor();
    void togglePower();
    
    
private:
    Ui::Aircondition_Dialog *ui;
    
    int currentMode;
    int currentFanSpeed;
    int currentTemp;
    bool isPowerOn;
    
    const QStringList modes = {"自动" , "制冷" , "制热" , "除湿" , "送风"};
    const QStringList fanSpeeds = {"静音", "低", "中", "高", "强力"};
};

#endif // AIRCONDITION_DIALOG_H
